package org.fuys.coder.domain.feed.service.impl;

import org.fuys.coder.domain.feed.service.IFeedPullService;
import org.fuys.coder.domain.mailbox.model.vo.MailVO;
import org.fuys.coder.domain.mailbox.service.IMailBoxService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.feed.service.impl
 * @className: FeedPullServiceImpl
 * @author: WangJing
 * @description: feed流拉实现类
 * @date: 2024/7/25 23:20
 * @version: 1.0
 */

@Service
public class FeedPullServiceImpl implements IFeedPullService {

    @Resource
    private IMailBoxService mailBoxService;

    @Override
    public List<MailVO> pullMessage(Integer userId) {
        return mailBoxService.getUserInbox(userId);
    }
}
